<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\MemberNotify
 *
 * @property int $id
 * @property int $is_read 是否阅读
 * @property int $member_id 用户id
 * @property int $notify_id 关联notify
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property-read \App\Models\Notify $notify
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberNotify newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberNotify newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberNotify query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberNotify whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberNotify whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberNotify whereIsRead($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberNotify whereMemberId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberNotify whereNotifyId($value)
 * @mixin \Eloquent
 */
class MemberNotify extends Model
{
    protected $table = 'member_notify';

    public function notify()
    {
        return $this->belongsTo(Notify::class, 'member_id');
    }
}
